<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="选择开单的默认账套" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doSave(){
		frm.submit();
	}
	function doCancel(){
		parent.ClosePop();
	}
	function doInit(){
		document.getElementById("ts_id").focus();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSave();
		}
	}
</script>
</head>
<body oncontextmenu="return false" scroll="no" onLoad="doInit();" onKeyUp="checkInput();" class="sheet modal-dialog" style=" padding-top:15px;">
<div class="sheet-main" id="bodyDiv" style="width:275px;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:set var="pageTopTitle" value="选择开单的默认账套" />
				<c:set var="pageTopMark" value="" />
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-0">
						<tr>
							<td align="center">
								账套名称：
								<select name="ts_id" id="ts_id">
					        		<option value="0">==请选择==</option>
					        		<c:forEach var="item" items="${currentUser.tallySets}">
					        		<option value="${item.id}" <c:if test="${item.id==currentUser.user.dfTsId}">selected</c:if>>${item.title}</option>
					        		</c:forEach>
					        	</select>
							</td>
						</tr>	
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom">
			<input type="button" class="buttom-a" value=" 确 定 " onClick="doSave();" id="saveButton">
			<input type="button" class="buttom-a" value=" 取 消 " onClick="doCancel();">
			<input type="hidden" name="flag" id="flag" value="1">		
		</div>
	</form>
</div>			   	
</body>
</html>